<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>输出用户输入的信息</title>
</head>

<body>
    <script>
        var msg = prompt('请输入你的信息');
        document.write(msg);
    </script>
</body>

</html>